package com.meowcook.service;

import com.meowcook.pojo.dto.SessionDTO;
import com.meowcook.pojo.vo.SessionVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-11-15
 * Time: 12:06
 */
public interface ISessionService {
    /**
     * 创建会话
     * @param sessionDTO 会话信息
     * @return 会话id
     */
    @Transactional
    Long createSession(SessionDTO sessionDTO);

    ArrayList<SessionVO> getSessionList(Long userId);
}
